package com.itema.plugin;

import com.intellij.notification.Notification;
import com.intellij.notification.NotificationDisplayType;
import com.intellij.notification.NotificationGroup;
import com.intellij.notification.Notifications;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.ui.MessageType;

/**
 * Package: PACKAGE_NAME
 * Description：
 * Author: huangjian
 * Date:  2020/10/18 12:49
 * Modified By:
 */
public class SecondPlugin extends AnAction {

    @Override
    public void actionPerformed(AnActionEvent e) {
        NotificationGroup notificationGroup = new NotificationGroup("firstplugin", NotificationDisplayType.BALLOON, true);
        Notification click = notificationGroup.createNotification("点击测试", MessageType.INFO);
        Notifications.Bus.notify(click);
    }
}
